//
//  UIView+Cut.m
//  ZhouDao
//
//  Created by zengweihuan on 2018/5/30.
//  Copyright © 2018年 hyj. All rights reserved.
//

#import "UIView+Cut.h"

@implementation UIView (Cut)
-(void)setBorderWidth:(CGFloat)borderWidth color:(UIColor*)borderColor
{
    self.layer.borderColor = borderColor.CGColor;
    self.layer.borderWidth = borderWidth;
    self.layer.masksToBounds = YES;
}
-(void)cutWithRadius:(CGFloat)radius
{
    self.layer.cornerRadius = radius;
    self.layer.masksToBounds = YES;
}
-(void)cutWithRadius:(CGFloat)radius borderWidth:(CGFloat)borderWidth color:(UIColor*)borderColor
{
    self.layer.cornerRadius = radius;
    self.layer.borderColor = borderColor.CGColor;
    self.layer.borderWidth = borderWidth;
    self.layer.masksToBounds = YES;
}
@end
